<extend name="Public/Common/base.html" />
<block name="main">
<style>
form{
	font-size:14px;
}
</style>

 <css  href="__PUBLIC__/assets/css/amazeui.chosen.css"/>
 <js href="__PUBLIC__/assets/js/amazeui.chosen.min.js"/> 
 <css  href="__PUBLIC__/assets/css/amazeui.datetimepicker.css"/>
 <js href="__PUBLIC__/assets/js/amazeui.datetimepicker.min.js"/> 




<div class="am-g">
 <form class="am-form" <notempty name="editlist.id"> action={:U('Admin/Leave/update')}</notempty> method="post">
  <fieldset>
     
     <div class="am-form-group am-u-sm-3 am-u-end">
      <label for="doc-select-1">请假人员:</label>   
			<select data-placeholder="请选择请假人员"   name="leaveuser"  id="leaveuser" multiple class="chosen-select " tabindex="11" readonly  >			 
			 
			 <volist name="relationlist" id="vo">
			  <optgroup label="{$vo.station}" >	
			      <foreach name="vo" item="v">
				      <foreach name="v" item="vv">
					  <option value="{$vv['id']}" <eq name="vv.name" value="$editlist.leaveuser">selected</eq> >{$vv['name']}</option>
					  </foreach>	
				   </foreach>						 
			 </optgroup>
			 </volist>				
         </select>
          				       	                 
    </div>
        
  
     <div class="am-form-group am-u-sm-3 am-u-end" >
      <label for="doc-select-1">请假月份:</label>       
	   <select id="mid"  name="mid" required  >
        <option value="">请选择月份</option>
        <volist name="monthlist" id="vo">  
        <option value="{$vo.id}" <if condition="$vo.month eq $editlist['mid']">selected</if>>{$vo.month}月</option>
       </volist>
      </select>
      <span class="am-form-caret"></span>     				       	                 
    </div>

	<div class="am-input-group am-u-sm-3 am-u-end" >
	 <label for="tasktime">请假时间:</label>   
	<input  type="text" name="leavetime" id="leavetime" value="<notempty name="editlist.leavetime">{$editlist.leavetime}</notempty>" placeholder="请输入日期"  class="form-datetime-lang am-form-field" required>
	</div>
	
    <div class="am-input-group am-u-sm-3 am-u-end" >
	 <label for="tasktime">请假天数:</label>   
	<input  type="text" name="leavedate" id="leavedate" value="<notempty name="editlist.leavedate">{$editlist.leavedate}</notempty>" placeholder="请输入天数"  class="am-form-field" required>
	</div>
	
	 <input id="ldate" type="hidden" name="ldate" value="{$editlist.leavedate}"> 
	
	<div class="am-form-group am-u-sm-12">
      <label for="taskinfo">请假原因：</label>
     <textarea id="leaveinfo" name="leaveinfo" minlength="3" rows="7"  required ><notempty name="editlist.leaveinfo">{$editlist.leaveinfo}</notempty></textarea>
    </div>
	
	<input type="hidden" id="id" name="id" value="<notempty name="editlist.id">{$editlist.id}</notempty>">
	
<js href="__PUBLIC__/layer/layer.js" />		
<js href="__PUBLIC__/assets/js/app.js"/> 

  </fieldset>
   <p>
   <button <notempty name="editlist.id"> type="submit"<else/>type="button"  onclick="leave()"</notempty>  class="am-btn am-btn-sm am-btn-primary am-margin-left-lg" >{$info}</button>
   </p>
   
  
</form>
</div> 


       
       
</block>
